<html>
<head><meta charset="utf-8"><title>OOM building rustc_middle · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html">OOM building rustc_middle</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="200791898"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/200791898" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#200791898">(Jun 14 2020 at 00:10)</a>:</h4>
<p>I'm trying to build the compiler, and I'm repeatedly finding that I run out of memory compiling <code>rustc_middle</code>.</p>



<a name="200791911"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/200791911" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#200791911">(Jun 14 2020 at 00:11)</a>:</h4>
<p>I initially thought it might be because my <code>config.toml</code> set <code>parallel-compiler = true</code> and <code>codegen-units = 0</code>, but I've since reverted both of those settings, and I still haven't managed to successfully build <code>rustc_middle</code> without having <code>rustc</code> killed by the OOM killer.</p>



<a name="200791946"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/200791946" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#200791946">(Jun 14 2020 at 00:12)</a>:</h4>
<p>(I have 8GB of RAM.)</p>



<a name="200791963"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/200791963" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#200791963">(Jun 14 2020 at 00:12)</a>:</h4>
<p>I would appreciate some help trying to figure out if I've done something wrong here.</p>



<a name="200792268"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/200792268" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#200792268">(Jun 14 2020 at 00:23)</a>:</h4>
<p>I recall having had trouble building rustc with 8G of memory at about the time 2018 edition was being cooked. Given that the compiler only ever gets more complex (and LLVM ever so slightly more quadratic), I can see it just genuinely not fitting.</p>



<a name="200792311"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/200792311" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#200792311">(Jun 14 2020 at 00:24)</a>:</h4>
<p>Though there are a couple of things you can try: a clean checkout and just <code>x.py build</code> without even creating a config.toml (so the defaults are used) is one.</p>



<a name="200792325"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/200792325" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#200792325">(Jun 14 2020 at 00:25)</a>:</h4>
<p>I'll give that a try, just to make sure.</p>



<a name="200792371"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/200792371" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#200792371">(Jun 14 2020 at 00:26)</a>:</h4>
<p>I've been using <code>./x.py build -i --stage 1 src/libstd</code>. Is that likely to be a problem?</p>



<a name="200792386"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/200792386" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#200792386">(Jun 14 2020 at 00:27)</a>:</h4>
<p>I would try without <code>-i</code>, given that it is a scratch build anyway.</p>



<a name="200792472"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/200792472" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#200792472">(Jun 14 2020 at 00:29)</a>:</h4>
<p>Already kicked off a build with <code>-i</code> and no <code>config.toml</code>, but if that fails too then I'll try without.</p>



<a name="200792825"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/200792825" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#200792825">(Jun 14 2020 at 00:38)</a>:</h4>
<p>Related question: is there any option in the compiler to report a "high water mark" of total memory usage, from the allocator?</p>



<a name="200792833"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/200792833" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#200792833">(Jun 14 2020 at 00:39)</a>:</h4>
<p>Would be useful for memory usage profiling and optimization.</p>



<a name="200793002"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/200793002" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#200793002">(Jun 14 2020 at 00:45)</a>:</h4>
<p>Well, it's making it further, but still coming <em>very</em> close to OOM.</p>



<a name="200793096"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/200793096" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#200793096">(Jun 14 2020 at 00:48)</a>:</h4>
<p>...and there it went. Killed after 13 minutes of CPU time.</p>



<a name="200793104"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/200793104" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#200793104">(Jun 14 2020 at 00:49)</a>:</h4>
<p>Trying again with <code>./x.py clean</code> and then just <code>./x.py build</code>.</p>



<a name="200793563"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/200793563" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#200793563">(Jun 14 2020 at 01:03)</a>:</h4>
<p>Too early to tell, but compiling <code>rustc_middle</code> seems to be using <em>drastically</em> less memory without <code>-i</code>.</p>



<a name="200793616"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/200793616" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#200793616">(Jun 14 2020 at 01:04)</a>:</h4>
<p>I don’t believe rustc or x.py has an option for high watermark, but running code under a memory profiler such as massif would give that information.</p>



<a name="200793641"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/200793641" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#200793641">(Jun 14 2020 at 01:05)</a>:</h4>
<p>(genuinely not sure if its even feasible to get x.py use massif, <span class="user-mention" data-user-id="120989">@Nicholas Nethercote</span> would know better)</p>



<a name="200793809"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/200793809" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#200793809">(Jun 14 2020 at 01:10)</a>:</h4>
<p>Looks like that did it. Incremental compilation <em>massively</em> increases memory usage.</p>



<a name="200794196"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/200794196" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#200794196">(Jun 14 2020 at 01:23)</a>:</h4>
<p><a href="https://github.com/rust-lang/rust/issues/73337">https://github.com/rust-lang/rust/issues/73337</a></p>



<a name="200812827"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/200812827" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#200812827">(Jun 14 2020 at 11:41)</a>:</h4>
<p>I just verified and locally building rustc can take up to 10GB</p>



<a name="200812904"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/200812904" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#200812904">(Jun 14 2020 at 11:43)</a>:</h4>
<p>Even more in fact</p>



<a name="200819154"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/200819154" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#200819154">(Jun 14 2020 at 14:37)</a>:</h4>
<p>I can say it works on my laptop with 32 GB :-)</p>



<a name="200831989"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/200831989" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#200831989">(Jun 14 2020 at 20:21)</a>:</h4>
<p>I've been able to successfully build it with 8GB, but it takes some care, and that's unfortunate.</p>



<a name="200832033"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/200832033" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#200832033">(Jun 14 2020 at 20:22)</a>:</h4>
<p>Once I finish the project I'm working on, I may try doing some memory profiling and see if I can reduce peak memory consumption enough to make it fit more comfortably, and support incremental builds.</p>



<a name="200832045"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/200832045" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#200832045">(Jun 14 2020 at 20:23)</a>:</h4>
<p>(Also, I managed to get incremental builds working by freeing up a little more memory, doing the build once, and now as long as I don't touch anything that goes into <code>rustc_middle</code> I can keep doing incremental builds. But that's not ideal either.)</p>



<a name="200832753"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/200832753" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#200832753">(Jun 14 2020 at 20:43)</a>:</h4>
<p>Maybe splitting up <code>rustc_middle</code> into separate crates would solve the problem? Obviously a huge undertaking though</p>



<a name="200832804"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/200832804" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#200832804">(Jun 14 2020 at 20:44)</a>:</h4>
<p>What's the difference between <code>rustc_hir</code> and <code>rustc_middle::hir</code>?</p>



<a name="200832831"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/200832831" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#200832831">(Jun 14 2020 at 20:45)</a>:</h4>
<p><span class="user-mention" data-user-id="307537">@Camelid</span> As I understand it, that's been a desirable goal for a long time, but that's separate from incremental compilation taking up an excessive amount of memory.</p>



<a name="200832839"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/200832839" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#200832839">(Jun 14 2020 at 20:45)</a>:</h4>
<p>I guess it would just fix the symptom of the problem rather than the problem itself</p>



<a name="200958465"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/200958465" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> mark-i-m <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#200958465">(Jun 15 2020 at 23:35)</a>:</h4>
<p>I usually add some swap space so I don't oom, but yeah this regularly happens to me... it's one of the reasons I try to use CI to test</p>



<a name="200958530"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/200958530" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> mark-i-m <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#200958530">(Jun 15 2020 at 23:36)</a>:</h4>
<p>The other thing is that if there are multiple jobs running it's worse</p>



<a name="200959472"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/200959472" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> njn <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#200959472">(Jun 15 2020 at 23:51)</a>:</h4>
<p>I've never done it myself. I'm sure it's possible in some fashion, but it might require modifying <code>x.py</code>.</p>



<a name="204078637"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/204078637" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#204078637">(Jul 16 2020 at 12:56)</a>:</h4>
<p><span class="user-mention" data-user-id="307537">@Camelid</span> the reason <code>rustc_hir</code> even exists is part of the start of that process</p>



<a name="204078681"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/204078681" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#204078681">(Jul 16 2020 at 12:56)</a>:</h4>
<p><code>rustc_middle</code> is still where everything came from but I'm not sure who is still working on trying to break it up</p>



<a name="204078749"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/204078749" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#204078749">(Jul 16 2020 at 12:57)</a>:</h4>
<p>some of the approaches are less great than others, there are nice ways and there are hacks that involve redirecting stuff through e.g. <code>fn</code> pointers in global variables etc.</p>



<a name="204108633"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/204108633" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#204108633">(Jul 16 2020 at 16:30)</a>:</h4>
<p>Yeah, breaking this stuff up looks really hard!</p>



<a name="204108798"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/OOM%20building%20rustc_middle/near/204108798" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/OOM.20building.20rustc_middle.html#204108798">(Jul 16 2020 at 16:31)</a>:</h4>
<p>Thanks for the background information by the way :)</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>